package chapter02;

public class Example01 {
    public static void main(String[] args) {
        int num = 4;
        //转换数据前加（要转化的类型）强制转化数据
        byte b1 = (byte) num;//java不同类型
        System.out.println(b1);
        byte n1 = 127;
        short n2 = 30000;
        int n3 = 1234567890;
        long n4 = 987;
        //浮点数
        float m1 = 0.123456789f;
        double m2 = 100.1;
        char c = 'a';
        char ch = 97;
        System.out.println(ch);
        boolean flaq = false;
        flaq = true;
        byte b = 3;
        int x = b;
    }
}
